import {createRouter, createWebHashHistory} from 'vue-router'

const router=createRouter({
  history:createWebHashHistory(),
  routes:[
    {
      path: '/',
      redirect: '/start'
    },
    {
      path: '/start',
      name: 'start',
      component: ()=>import(/* webpackChunkName: "start" */ '../views/start/index.vue')
    },
    {
      path: '/home',
      name: 'home',
      component: ()=>import(/* webpackChunkName: "home" */ '../views/home/index.vue')
    },
    {
      path: '/play',
      name: 'play',
      component: ()=>import(/* webpackChunkName: "play" */ '../views/play/index.vue')
    },
    {
      path: '/wave',
      name: 'wave',
      component: ()=>import(/* webpackChunkName: "play" */ '../views/wave/index.vue')
    },
    {
      path: '/speaking',
      name: 'speaking',
      component: ()=>import(/* webpackChunkName: "speaking" */ '../views/speaking/index.vue')
    },
    {
      path: '/speakingwave',
      name: 'speakingwave',
      component: ()=>import(/* webpackChunkName: "speakingwave" */ '../views/speaking/speakingwave.vue')
    },
    {
      path: '/speakinganswer',
      name: 'speakinganswer',
      component: ()=>import(/* webpackChunkName: "speakinganswer" */ '../views/speakinganswer/index.vue')
    },
    {
      path: '/choose',
      name: 'choose',
      component: ()=>import(/* webpackChunkName: "choose" */ '../views/choose/index.vue')
    },
    {
      path: "/error",
      name: "error",
      component: ()=>import(/* webpackChunkName: "error" */ '../views/error/index.vue')
    }
  ]
})
export default router